package com.tjetc.mapper;

import com.tjetc.domain.Doctor;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DoctorMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Doctor record);

    int insertSelective(Doctor record);

    Doctor selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Doctor record);

    int updateByPrimaryKey(Doctor record);

    Doctor getDoctorByName(String Username);//根据用户名查询

    List<Doctor> getDoctorList();

    Doctor getDoctorByNewBornId(int id);

    String getDoctorByVaccine(@Param("newBornId")int newBornId,@Param("vaccineId") int vaccineId);

    List<Doctor> getDoctorByNewBornIdAll(int id);
    @Select("select * from doctor where username=#{username}")
    Doctor findByName(String username);
}